package com.zhongli.devplatform.po.live;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * (ReadLive)表实体类
 * @author aiyuan
 * @since 2020-07-27 09:48:42
 */
@Data
@TableName(value = "read_live")
public class ReadLivePO {

    //主键标识
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;
    //直播封面
    @TableField("cover_url")
    private String coverUrl;
    //昵称
    @TableField("nick_name")
    private String nickName;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("start_time")
    private Date startTime;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("end_time")
    private Date endTime;
    //直播时长
    private String duration;
    //评论数
    @TableField("review_num")
    private Integer reviewNum;
    //粉丝数量
    @TableField("fans_num")
    private Integer fansNum;
    //观看数量
    @TableField("watch_num")
    private Integer watchNum;

    //房间号
    @TableField("room_id")
    private Integer roomId;

    //直播间标题 描述
    @TableField("live_title")
    private String liveTitle;

    //是否正在直播的状态
    @TableField("is_online")
    private Boolean isOnline;
}
